package com.abc.hellospringboot;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class HelloSpringBootApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(HelloSpringBootApplication.class, args);
    }

    @Value("${hello}")
    private String str;
    @Value("${user.dir}")
    private String userDir;


    @Override
    public void run(String... args) throws Exception {
        System.out.println("=====hello: "+str);
        System.out.println("=====user.dir: "+userDir);
    }
}

